<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="../src/DataCookieWriter.js"></script>
        <script type="text/javascript" src="../src/DataStorageWriter.js"></script>
        <script type="text/javascript" src="../src/DataStorage.js"></script>
        <script type="text/javascript">
            var dataStorage = new DataStorage();
            
            dataStorage.set('test1', 'value1');
            console.log(dataStorage.get('test1'));// value1 - OK
            
            dataStorage.remove('test1');
            console.log(dataStorage.get('test1'));// undefined - OK
            
            dataStorage.set(1, 2);
            dataStorage.set(2, dataStorage.get(1));
            
            console.log(dataStorage.get(2).toNumber() === 2);// true - OK
            
            dataStorage.remove([1,2]);
            
            console.log(dataStorage.get(1), dataStorage.get(2));//undefined, undefined - OK
            
            //All OK
        </script>
    </head>
    <body>
    </body>
</html>
